package top.laoshuzi.designpatterns.base.created.builder;

import org.junit.Test;

public class Client {

    @Test
    public void operation() {

        //初始化
        Builder builder = new ConcreteBuilder();
        Director director = new Director(builder);

        //创建
        Product product = director.create();
        System.out.println(product.getPart1());
        System.out.println(product.getPart2());
        System.out.println(product.getPart3());
    }
}
